<?php
defined('_JEXEC') or die;

// Include the syndicate functions only once
require_once dirname(__FILE__).'/helper.php';

define('COM_MEDIA_BASEURL', JURI::root().'/images/products/');

//$list	= modProductsAdvertisementHelper::getList($params);
//if(count($list)) {
$list=array(
	'0'=>array(
		'name'=>'test1',
		'img_url'=>'20111203032649.jpg',
		'href'=>'###'
	),
	'1'=>array(
		'name'=>'test2',
		'img_url'=>'20111203033730.jpg',
		'href'=>'###'
	),
	'2'=>array(
		'name'=>'test3',
		'img_url'=>'20111203033413.jpg',
		'href'=>'###'
	),
	'3'=>array(
		'name'=>'test4',
		'img_url'=>'20111203033426.jpg',
		'href'=>'###'
	),
);
require JModuleHelper::getLayoutPath('mod_products_advertisement', $params->get('layout', 'default'));
//}